/**
 * Created by liguangsong on 16/8/10.
 */
import { SELECT_CONFERENCE } from '../action/index.js'

function initialState() {
    return {
        teamType: "west",
        westTop: 50,
        eastTop: 73,
        westFont: 60,
        eastFont: 45
    }
}

function selectConference(state=initialState() ,action) {
    //console.log('--------------');
    switch (action.type) {
        case SELECT_CONFERENCE: {
            if (action.text == 'west') {
                return {
                    teamType: 'west',
                    westTop: 50,
                    eastTop: 73,
                    westFont: 60,
                    eastFont: 45
                }
            }
            else {
                return {
                    teamType: 'east',
                    westTop: 73,
                    eastTop: 50,
                    westFont: 45,
                    eastFont: 60
                }
            }
        }
        default : {
            return state;
        }
    }
}

export default selectConference;